package com.sgj.springcloud.alibaba.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 沈国纪
 * @date 2021/5/4 11:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

	/**
	 * 返回的编码
	 */
	private Integer code;

	/**
	 * 返回的信息
	 */
	private String message;

	/**
	 * 返回的数据
	 */
	private T data;

	public CommonResult(Integer code, String message) {
		this(code, message, null);
	}
}